home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v10n18.arc
/
LN1018.ARC
/
MYSHELL.1
< prev
next >
Wrap
Text File
|
1991-10-30
|
578b
|
18 lines
Declare Function FindWindow Lib "user"(dummy As Long, title$) \
As Integer
Declare Function GetFocus Lib "user" As Integer
Declare Sub PostMessageStr Lib "user"(hWnd As Integer, \
wMsg As Integer, wParam As Integer, lParam$) Alias "PostMessage"
Sub MAIN
Shell "notepad"
notepad = FindWindow(0, "Notepad - (untitled)")
editctrl = GetFocus
wmSetText = 12
PostMessageStr notepad, wmSetText, 0, "This is a test"
PostMessageStr editctrl, wmSetText, 0, \
"This is some text to appear in Notepad" + Chr$(13) + Chr$(10)
End Sub